package com.medicine.manage.domain;

import java.util.List;

import com.medicine.common.core.domain.BaseEntity;
import com.medicine.common.core.domain.entity.SysDept;
import com.medicine.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.medicine.common.annotation.Excel;

/**
 * 订单对象 m_order
 * 
 * @author admin
 * @date 2024-10-13
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 门店ID */
    @Excel(name = "门店ID")
    private Long deptId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 药包数量 */
    @Excel(name = "药包数量")
    private Long medicineCount;

    /** 药剂数量 */
    @Excel(name = "药剂数量")
    private Long resultCount;

    /** 煎药锅Id 由煎药环节填入 */
    private Long panId;

    /** 容器ID  由浸泡流程填入 */
    private Long containerId;

    /** 药包总重量（单位克） */
    @Excel(name = "药包总重量", readConverterExp = "单=位克")
    private Double weight;

    private SysUser user;
    private SysDept dept;

    /** 订单详情信息 */
    private List<OrderDetail> orderDetailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setMedicineCount(Long medicineCount) 
    {
        this.medicineCount = medicineCount;
    }

    public Long getMedicineCount() 
    {
        return medicineCount;
    }
    public void setResultCount(Long resultCount) 
    {
        this.resultCount = resultCount;
    }

    public Long getResultCount() 
    {
        return resultCount;
    }
    public void setPanId(Long panId) 
    {
        this.panId = panId;
    }

    public Long getPanId() 
    {
        return panId;
    }
    public void setContainerId(Long containerId) 
    {
        this.containerId = containerId;
    }

    public Long getContainerId() 
    {
        return containerId;
    }
    public void setWeight(Double weight)
    {
        this.weight = weight;
    }

    public Double getWeight()
    {
        return weight;
    }

    public List<OrderDetail> getOrderDetailList()
    {
        return orderDetailList;
    }

    public void setOrderDetailList(List<OrderDetail> orderDetailList)
    {
        this.orderDetailList = orderDetailList;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("status", getStatus())
            .append("medicineCount", getMedicineCount())
            .append("resultCount", getResultCount())
            .append("panId", getPanId())
            .append("containerId", getContainerId())
            .append("weight", getWeight())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("orderDetailList", getOrderDetailList())
                .append("user", this.getUser())
                .append("dept", this.getDept())
            .toString();
    }
}
